<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>原力互娱运维管理系统</title>

    <!-- Bootstrap Core CSS -->
    <link href="/static/css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="/static/css/metisMenu.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="/static/css/sb-admin-2.css" rel="stylesheet">

    <!-- 公司logo -->
    <link rel="shortcut icon" href="/static/img/logo.png?v=c2b4b0669d2669211fbddaf825655942aa8cb33e"
          type="image/x-icon">

    <!-- Custom Fonts -->
    <link href="/static/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="/static/css/select2.css" rel="stylesheet" type="text/css">
    <script src="/static/js/jquery.js"></script>
    <script type="text/javascript" src="/static/js/select2.min.js"></script>
</head>
<body>
{% load staticfiles %}
{% load mptt_tags %}

<!-- 用户编辑区域 -->
<div class="col-lg-8">
    <div class="panel panel-default">
        <div class="panel-heading">
            <span style="font-size: 18px"><b>搜索结果</b></span>
        </div>
        <div class="panel-body">
        {% if org_object_list %}
            <table id="mytable" width="100%" cellspacing="0"
                   class="table table-striped table-hover">
                <thead>
                <tr>
                    <th>用户名</th>
                    <th>用户拼音</th>
                    <th>用户邮箱</th>
                    <th>所属部门</th>
                    <th>编辑</th>
                </tr>
                </thead>
                <tbody>
                {% for org_object in org_object_list %}
                    <tr>
                        <td>{{ org_object.name }}</td>
                        <td>{{ org_object.user.first_name }}</td>
                        <td>{{ org_object.user.email }}</td>
                        <td>{{ org_object.get_ancestors_except_self }}</td>
                        <td><a href="/users/organization/{{ org_object.id }}/" type="button" class="btn btn-sm btn-primary">编辑</a></td>
                    </tr>
                {% endfor %}
                </tbody>
            </table>
        {% else %}
            <p>暂无该用户信息，请联系运维部网络组创建！</p>
        {% endif %}
        </div>
    </div>
</div>


<script src="/static/js/jquery.dataTables.js"></script>
<script src="/static/js/users_organizaion_search_result.js?v=20190508001"></script>
<script src="/static/js/dataTables.colVis.js"></script>

<link href="/static/css/jquery.dataTables.css" rel="stylesheet" type="text/css">
<link href="/static/css/dataTables.colVis.css" rel="stylesheet" type="text/css">

</body>
</html>
